package cn.iocoder.yudao.module.spot.service.impl;

import cn.iocoder.yudao.module.spot.dal.mysql.SpotMapper;
import cn.iocoder.yudao.module.spot.entity.PackEntity;
import cn.iocoder.yudao.module.spot.entity.SpotEntity;
import cn.iocoder.yudao.module.spot.service.SpotService;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.annotation.Resource;
import java.util.List;

@Service
@Validated
public class SpotServiceImpl implements SpotService {

    @Resource
    private SpotMapper spotMapper;

    @Override
    public List<SpotEntity> getListByParams(int pageSize, int pageNum,SpotEntity spotEntity) {
        return spotMapper.getSpotList(pageSize,pageNum,spotEntity);
    }

    @Override
    public int count(SpotEntity spotEntity) {
        return spotMapper.countByParams(spotEntity);
    }

    @Override
    public List<PackEntity> getPackList(PackEntity packEntity) {
        return spotMapper.getPackList(packEntity);
    }


}
